<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>js练习</title>
  </head>
  <body>
    <input type="button" value="点我" onclick="alert('hello world!')" />

    <script type="text/javascript">
      alert("hello world2！");
      console.log("方式2");

      var result = confirm("弹窗：confirm()语句（含确认/取消）");
      console.log(result);

      var a = prompt("随便输入点什么都可以");
      console.log(a);

      document.write("网页内容区域输出：document.write()语句");
    </script>

    <script src="util.js"></script>
  </body>
</html>
